package com.fdb.efp.flow.common.constance;

/**
 * 
 * 静态常量类
 * 
 * @author Cytus_
 * @since 2018年5月29日 下午7:16:07
 * @version 1.0
 *
 */
public final class FlowConstance {
	
	/**
	 * 页面查看插件
	 */
	public static String PLUGIN_TYPE_PAGE_VIEW = "V";
	
	/**
	 * 页面修改插件
	 */
	public static String PLUGIN_TYPE_PAGE_UPDATE = "U";
	
	/**
	 * 页面新增插件
	 */
	public static String PLUGIN_TYPE_PAGE_ADD = "A";
	
	/**
	 * 服务插件
	 */
	public static String PLUGIN_TYPE_SERVICE = "S";
	
	/**
	 * 入参
	 */
	public static String PLUGIN_IN_PARAM = "I";
	
	/**
	 * 出参
	 */
	public static String PLUGIN_OUT_PARAM = "O";
	
	/**
	 * 任务状态-准备
	 */
	public static String TASK_STATUS_READY = "01";
	
	/**
	 * 任务状态-运行中
	 */
	public static String TASK_STATUS_RUNNING = "02";
	
	/**
	 * 任务状态-暂停
	 */
	public static String TASK_STATUS_PAUSE = "03";
	
	/**
	 * 任务状态-异常
	 */
	public static String TASK_STATUS_EXCEPTION = "04";
	
	/**
	 * 任务状态-结束
	 */
	public static String TASK_STATUS_END = "05";
	
	/**
     * 任务状态-终止
     */
    public static String TASK_STATUS_TERMINATE = "06";
	
	/**
	 * 节点状态-准备
	 */
	public static String NODE_STATUS_READY = "01";
	
	/**
	 * 节点状态-运行中
	 */
	public static String NODE_STATUS_RUNNING = "02";
	
	/**
	 * 节点状态-暂停
	 */
	public static String NODE_STATUS_PAUSE = "03";
	
	/**
	 * 节点状态-异常
	 */
	public static String NODE_STATUS_EXCEPTION = "04";
	
	/**
	 * 节点状态-结束
	 */
	public static String NODE_STATUS_END = "05";
	
	/**
     * 节点状态-终止
     */
    public static String NODE_STATUS_TERMINATE = "06";
	
	/**
	 * 事件状态-准备
	 */
	public static String EVENT_STATUS_READY = "01";
	
	/**
	 * 事件状态-运行中
	 */
	public static String EVENT_STATUS_RUNNING = "02";
	
	/**
	 * 事件状态-暂停
	 */
	public static String EVENT_STATUS_PAUSE = "03";
	
	/**
	 * 事件状态-结束
	 */
	public static String EVENT_STATUS_END = "05";
	
	/**
     * 事件状态-终止
     */
    public static String EVENT_STATUS_TERMINATE = "06";
	
	/**
	 * 流程状态-运行中
	 */
	public static String FLOW_STATUS_RUNNING = "02";
	
	/**
	 * 流程状态-结束
	 */
	public static String FLOW_STATUS_END = "05";
	
	/**
     * 流程状态-终止
     */
	public static String FlOW_STATUS_TERMINATE = "06";
	
	/**
	 * 处理状态-等待中
	 */
	public static String PROCESS_STATE_WAIT = "0";
	
	/**
	 * 处理状态-结束
	 */
	public static String PROCESS_STATE_FINISH = "1";
	
	/**
	 * 页面插件vo默认 KEY
	 */
	public static String PAGE_PLUGIN_VO_KEY = "PAGE_PLUGIN_VO_KEY";
	/**
	 * 页面插件vo默认 KEY
	 */
	public static String PAGE_PLUGIN_VO_KEY2 = "PageApproveVO";

	/**
	 * 默认插件vo-key
	 */
	public static String DEFAULT_PLUGIN_VO_KEY = "DEFAULT_PLUGIN_VO";
	
	/**
	 * 最后一次插件出参key
	 */
	public static String LAST_PLUGIN_OUT_PARAM_KEY = "LAST_PLUGIN_OUT_PARAM_KEY";
	
	/**
	 * PRD_ID
	 */
	public static String RESTFUL_PRD_ID_KEY = "prdId";
	
	/**
	 * FLOW_ID
	 */
	public static String RESTFUL_FLOW_ID_KEY = "flowId";
	
	/**
	 * RESTFUL_OBJECT_CLASS_KEY
	 */
	public static String RESTFUL_OBJECT_CLASS_KEY = "clazz";
	
	/**
	 * RESTFUL_OBJECT_KEY
	 */
	public static String RESTFUL_OBJECT_KEY = "inArgs";
	
	/** 业务流转配置树节点类型    flow: 业务流转配置*/
	public static String BIZ_CFG_TREE_NODE_TYPE_FLOW = "flow";
	/** 业务流转配置树节点类型    stage: 业务流转阶段*/
	public static String BIZ_CFG_TREE_NODE_TYPE_STAGE = "stage";
	/** 业务流转配置树节点类型    node: 业务流转节点*/
	public static String BIZ_CFG_TREE_NODE_TYPE_NODE = "node";
	/** 业务流转配置树节点类型    event: 业务流转事件*/
	public static String BIZ_CFG_TREE_NODE_TYPE_EVENT = "event";
	
	/** 操作标识(用于标识可编辑列表)  add: 增加*/
	public static String BIZ_OPT_FLAG_ADD = "add";
	/** 操作标识(用于标识可编辑列表)  update: 修改 */
	public static String BIZ_OPT_FLAG_UPDATE = "update";
	/** 操作标识(用于标识可编辑列表)  delete: 删除*/
	public static String BIZ_OPT_FLAG_DELETE = "delete";
	
	/**
	 * 審批信息對象
	 */
	public static String APRV_USER_KEY = "aprvUserKey";
	
	public static String SYSTEM_USER_ID = "SystemUserId";
	public static String SYSTEM_USER_NAME = "系统用户";
	public static String SYSTEM_ORG_ID = "SystemOrgId";
	public static String SYSTEM_ORG_NAME = "系统机构";
	
	public static String TASK_POOL_USER_ID = "taskPoolUserId";
	public static String TASK_POOL_USER_NAME = "系统任务池";
	
	/**
	 * 业务节点
	 */
	public static final String NODE_TYPE_BUSINESS = "01";
	 
	/**
	 * 审批节点
	 */
	public static final String NODE_TYPE_APPROVE = "11";
	/**
	 *审批通过
	 */
	public static final String PASSCODE ="000";
	/**
	 *审批拒绝
	 */
	public static final String REFUSECODE = "101";
	/**
	 *审批打回
	 */
	public static final String REPULSECODE = "102";


	/** 业务流转类型: 额度管控 */
	public final static String BIZ_FLOW_TYPE_07 = "07";
	/** 业务流转类型: 贷后检查 */
	public final static String BIZ_FLOW_TYPE_08 = "08";
	/** 业务流转类型: 风险分类 */
	public final static String BIZ_FLOW_TYPE_09 = "09";
	/** 业务流转类型: 贷后催收 */
	public final static String BIZ_FLOW_TYPE_10 = "10";

	/** 委外延案申请事件标识 */
	public final static String COLLT_DALYA_CASE_APP_ENTER = "colltDelayCaseAppEnter";

	/** 委外人工流转申请事件标识 */
	public final static String OUTS_TASK_FLOW_ENTER = "outsTaskFlowEnter";

	/** 外催分案申请事件标识 */
	public final static String COLLT_TASK_DISTR_APP_ENTER = "colltTaskDistrAppEnter";

	/** 息费减免申请（单个审批节点）事件标识 */
	public final static String M1_RELIEF_ENTER = "m1ReliefEnter";
	/** 息费减免申请（两个审批节点）事件标识 */
	public final static String M2_RELIEF_ENTER = "m2ReliefEnter";
	/** 息费减免申请（三个审批节点）事件标识 */
	public final static String M3_RELIEF_ENTER = "m3ReliefEnter";
}
